package com.wasu.constant

import com.alibaba.fastjson.JSONObject
import com.wasu.sdk_ott.http.live.getLiveRegion
import com.wasu.sdk_ott.utils.WasuTvModelUtil

object LiveChannel {
    fun queryCommonParam(category: String? = null,jsonObject: JSONObject){
        jsonObject["category"] = if (category.isNullOrEmpty()) SYSTEM_CATEGORY_4K_IPDVB_LIVE else category
        jsonObject["code"] = getLiveRegion()
        jsonObject["appId"] = IP_SYSTEM_APP_ID
        jsonObject["appKey"] = IP_SYSTEM_APP_KEY
        jsonObject["timeStamp"] = System.currentTimeMillis().toString()
        jsonObject["nonceStr"] = WasuTvModelUtil.getUUID()
    }
}